#pragma once

#include "JNode.h"
#include <boost/filesystem.hpp>
#include <vector>
#include "JInOutPut.h"
using namespace boost::filesystem;


class JTree
{
private:
	int treeIndex;
public:
	JTree(void);
	~JTree(void);
	std::vector<JNodePtr> tree;

	void ReadDirectoryToTree(const char* rootPath);
	void ReadChildDir(path p,JNode& parentNode);

	int Serialize(JInOutPut& strea);

	void ReSerialize(JInOutPut& strea);
};

